﻿using FM.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FM.Service
{
    public interface ISecurityService
    {
        IEnumerable<User> GetUsers();

        User GetUser(string userName);

        void CreateUser(User user);

        void DeleteUser(string userName);

        IEnumerable<Role> Roles();

        Role GetRole(string roleName);

        void CreateRole(Role role);

        void DeleteRole(string roleName);

        void AssignRole(string userName, List<string> roleNames);


    }
}
